import React, { Component } from 'react';
import '../components/Topbar.scss'


class Topbar extends Component {
      constructor(props){
            super(props);
            this.state={
                  arr:['店铺','分类','全部商品','购物车','个人中心']
            }
      }
      render() {
            return (
                  <div className='topbar'> 
                        {
                              this.state.arr.map((item,index)=>{
                                    return(
                                          <div key={index} className="topbar1">
                                                <span>{item}</span>
                                          </div>
                                    )
                              })
                        }
                  </div>
            );
      }
}

export default Topbar;